< previous page page_712 next page >

Page 712
Reasons for Naming Conventions
There are many reasons programming standards are created. Most mainframe shops have had programming standards for years. Unfortunately, most PC programmers have forgotten or have never worked in a formal programming shop, and they often overlook this important step in application development.
Creating a programming standard does not limit your creativity, as most programmers seem to think. Instead, it helps you focus your creativity where its really needed. You can concentrate on the program itself instead of having to always think about what name to give a variable. Think about the Windows environment (or even the Macintosh)every program written for Windows has a consistent look and feel. This is why users like using Windows programs, because they dont have to learn everything about how a new program worksthey already know how to use most of the new programs features. By using standards in your programming, you can also keep the programmer look and feel consistent. This means you spend less time figuring out what the variables are or how many indents a programmer used, and you can focus more on the logic of the program.
The use of standards can lead to reduced maintenance costs due to a consistent look and feel. This means you can move from one project to another very easilyeven one someone else wroteand immediately read and understand the code.
Environment Options
To start, you should make sure every programmers Visual Basic environment is consistent, or if you are working alone, make sure that you at least set the following defaults. Visual Basic lets you set defaults for the development environment. Table A.1 shows the recommended values for some of those options. To set these values, select Tools, Options from the Visual Basic design menu.

 
< previous page page_712 next page >

If you like this book, buy it!